
<?php $pl = $this->postListVars[$this->postListLevel]; ?>

<?php if ($pl->adminToolsVisible): ?>
<div class="navbar">
<ul>
  <li><a href="<?php echo $pl->publishedListUrl; ?>">Published</a></li>
  <li><a href="<?php echo $pl->draftListUrl; ?>">Drafts</a></li>
  <li><a href="<?php echo $pl->addLinkUrl; ?>">New Post</a></li>
</ul>
</div>
<?php endif; ?>


<?php if ($pl->postCount > 0): ?>

<?php foreach ($pl->postList as $p): ?>
<div class="post-entry mg_bt_l">
  <div class="post-header mg_bt_m">
    <h2 class="mg_clr"><a href="<?php echo $p->url; ?>"><?php echo $this->escape($p->title); ?></a>
<?php if ($p->published != TRUE): ?>
 &ndash; <em>draft</em>
<?php endif; ?>
    </h2>
 <small>Posted by <strong><a href="<?php echo $p->creatorUrl; ?>"><?php echo $p->creatorName; ?></a></strong>
 &bull; <?php echo $this->relTimeString($p->time); ?>
<?php if ($p->hostLinkVisible === TRUE): ?>
 &bull; <a href="<?php echo $p->hostUrl; ?>"><?php echo $p->hostName; ?></a>
<?php endif; ?>
 &bull; <?php echo $this->itemCount($p->commentCount, 'No responses', '1 response', '%d responses'); ?>
<?php if ($p->editLinkUrl): ?>
 &bull; <a href="<?php echo $p->editLinkUrl; ?>">Edit</a>
<?php endif; ?>
<?php if ($p->deleteLinkUrl): ?>
 &bull; <a href="<?php echo $p->deleteLinkUrl; ?>">Delete</a>
<?php endif; ?>
    </small>
  </div>
  <div class="post-body"><?php echo $p->content; ?></div>
</div>
<?php endforeach; ?>

<div class="block box_1 shade_1 pd_s">
<?php if ($pl->postListPagePrevUrl): ?>
<a href="<?php echo $pl->postListPagePrevUrl; ?>">&larr; Previous</a> &bull;
<?php endif; ?>
Posts <strong><?php echo $pl->postListFirst; ?> - <?php echo $pl->postListLast; ?></strong> of <strong><?php echo $pl->postCountTotal; ?></strong>
<?php if ($pl->postListPageNextUrl): ?>
 &bull; <a href="<?php echo $pl->postListPageNextUrl; ?>">Next &rarr;</a>
<?php endif; ?>
</div>

<?php endif; ?>

